home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / hardware / disked.txt < prev    next >
Text File  |  1989-02-15  |  8KB  |  184 lines

  1. Title: Using DISKED
  2.  
  3.      NetWare includes utilities that directly interact with your
  4. disk drive subsystem.  These utilities include CompSurf, VRepair
  5. and DiskEd.  CompSurf is well documented and VRepair is also, to a
  6. point, but good ole DiskEd isn't documented anywhere.
  7.      This article will deal with "moving around" in DiskEd.
  8. Salient areas of the disk will be noted as well as how to modify
  9. them when necessary.
  10.      First, before we get started, a word of caution, DiskEd has
  11. the ability to "wipe out" your disk if not used without caution
  12. and a SOLID backup.  Concerning the backup, a couple good backups
  13. are recommended "just in case" or until you feel confident enough
  14. in your ability to work with DiskEd.
  15.  
  16. So, without further adieu, let's get acquainted with DiskEd.
  17.  
  18.      Included with all versions of NetWare, DiskEd must be run at
  19. the file server when it is down.  Once down, the file server is
  20. rebooted with DOS and then DiskEd is run.   The initial screens
  21. for DiskEd all look pretty much alike, for instance, for NetWare
  22. 86 the screen appears as such:
  23.  
  24. Novell Advanced NetWare/86 Disk Editor V2.00
  25. (C)Copyright Novell Inc. 1983, 1984, 1985
  26.  
  27.  
  28.  
  29.  
  30. 1 disk drives are attached to this PC:
  31.    1.  IBM XT or compatible
  32.  
  33. Maximum number of sectors per request = xx
  34.  
  35. >
  36.  
  37. Note that DiskEd's prompt is the ">" symbol.  Notice that you
  38. aren't told anything at first.  To help alleviate this (a little)
  39. type the letter "h", which is short for Help; DiskEd is not case
  40. sensitive.
  41.  
  42. >h
  43. Available commands are:
  44. R Num Num-- Read sector for count
  45. W Num Num-- Write sector for count
  46. D Address-- Display Buffer from an address
  47. C Address-- Change bytes till "."
  48. F Byte Start End-- Fill buffer with a byte
  49. M Start End Dest-- Move buffer to destination
  50. N -- New drive selection *Note-Not all versions have this option
  51. Q -- Exits to MS-DOS
  52.    * All values are Hex except "Num" in R & W
  53.    * If no values are entered on the write command
  54.      then the values of the previous read will be used
  55.    * The the buffer will hold a maximum of 64 sectors
  56.    * The default value for the sector counts is 1
  57.      and for the End values it is the buffer end.
  58.      All other values default to 0
  59.  
  60. Note that all operations discussed will be for one sector at a
  61. time. A simple operation would be to type r0 at the prompt:
  62.  
  63. >r0 <press enter>
  64. >   <the disk "busy" light will flash and the prompt will return>
  65.  
  66. The r0 operation simply read in sector zero of track zero of the
  67. disk.  Also note that r0 only reads in one sector, you can
  68. optionally indicate the number of sectors to read (in decimal).
  69. For instance: r0 15 would read the first 15 sectors.
  70.      Each sector is composed of 512 bytes regardless of what
  71. version of NetWare or what type of disk drive.  Next, the data
  72. read can be viewed by the d (display) command:
  73.  
  74. >d <press enter>
  75. 0000     FA EB 74 43 6F 70 79 72 69 67 68 74 20 28 63 29   zktCopyright (c)
  76. ...etc up to the first 256 bytes
  77. Shown are the first 256 bytes of the 512 byte sector, if the
  78. <enter> key is depressed at the next > prompt the next 256 bytes
  79. will be shown.  Notice the resemblance of the screen shown and
  80. that of DOS's Debug.
  81.  
  82. Now, you may change a value(s) of anything you see.  Note that you
  83. are changing the value in memory only, you need to write it to
  84. disk to make it permanent.  When you change, you enter an address
  85. to change.  This address is relative to the sector you just read
  86. in, so, for our previous example of r0, we enter:
  87.  
  88. >cf <press enter, note the "f" is the byte to change, in hex>
  89. 000F 29<-     <right after the "-" the cursor will be waiting the
  90.                new information>
  91. enter your change and press enter, note that you will be prompted
  92. for the next area to change, in this case:
  93. 0010 20<-
  94. If you are done, simply type the "." (period) and enter.  To view
  95. your change, type d0 and enter.  The d0 indicates the top of the
  96. first sector just read.
  97.  
  98. To save your change(s) permanently, (recall this was sector 0 we
  99. read and edited) the following command would be performed:
  100.  
  101. >w0 <enter>
  102. Note that per the "help" screen the 0 of the w0 isn't really
  103. necessary, but gives you a good feeling inside to know for sure
  104. which sector is being written.
  105.  
  106. In some cases you may want to wipe out some disk information. This
  107. is handled by reading the disk sector, such as r0.  Then at the
  108. next > prompt, enter f0, which indicates fill all bytes with 0.
  109. Now the sector just read will be full of 0s.  To complete the
  110. operation, use w0 to rewrite the sector that is now all 0s. One
  111. reason you may want to do this is if some how the boot track
  112. becomes corrupted.  This author has seen such cases where the only
  113. remedy was to erase the boot track and reload it (or to totally
  114. reinitialize the disk with CompSurf!).  Simply reloading it
  115. without erasing it had no effect.   Note that to actually wipe out
  116. the boot track you need to fill all sectors of it with 0s.  Those
  117. particular sectors are noted below.
  118.  
  119. Now, we've gone over some of the basics, let's discussion some of
  120. the salient disk sectors in the NetWare environment. All values
  121. below are decimal (because the read and write commands use
  122. decimal).
  123. Sector       Use
  124. ---------    ---------------------------------------------------
  125. 0 - 13       Boot area (regardless of where the disk is in the
  126.              system, this area is reserved as the boot area)
  127.              On some systems, fewer sectors are used.
  128. 14           HOTFIX redirection table (for SFT versions of NetWare)
  129.              MIRROR Tables too (best guess on this, it might be
  130.              on another sector also)
  131. 15           Indication of NetWare level, such as "NetWare" or
  132.              "Advanced NetWare" where "NetWare" is v4.61 and below.
  133.              Also contained here is the file server name (offset is
  134.              06h of sector 15)--printer info is here too
  135. 16           Map of all disk volumes on this physical disk drive.
  136. 17           Map of all disk volumes in the system (partially on
  137.              sector 16 too).  (information on this sector is "best
  138.              guess")
  139. 18           Media defect table (bad block list)
  140. 19 - 31      Unknown
  141. 32           Beginning of First FAT for first volume
  142.  
  143. The FAT can be edited.  For instance, you may have a file, that
  144. you cannot delete.  If you find its entry in the first FAT you can
  145. edit the file's information.  Note that two copies of the FAT
  146. exist for each NetWare volume, regardless of version.  When the
  147. first FAT is edited, the second FAT is not updated automatically.
  148. If the file server is booted after the first FAT has been changed,
  149. a Mirror Mismatch error will result.  But, if the volume mount is
  150. continued, the copy of the first FAT will replace that of the
  151. second FAT, thus restoring their equality.  Below is a typical
  152. view of some files in the FAT.
  153.  
  154. >d100
  155. 0100     00 03 46 53 57 4F 52 4B 2E 44 41 54 00 00 00 00    ..FSWORK.DAT....
  156. 0110     20 00 00 00 00 80 0C 9E 0C 9E 0C 3D 92 EE 00 5E     ..........=.n.^
  157. 0120     00 03 4C 41 59 4F 55 54 2E 44 41 54 00 00 00 00    ..LAYOUT.DAT....
  158. 0130     20 00 00 00 00 80 0C 9E 0C 9E 0C 3D 92 EE 00 5D     ..........=.n.]
  159. 0140     00 03 54 52 58 4C 43 4B 2E 44 41 54 00 00 00 00    ..TRXLCK.DAT....
  160. 0150     20 00 00 00 00 80 0C 9E 0C 9E 0C 3D 92 EE 00 5C     ..........=.n.\
  161. 0160     00 03 43 4E 47 43 4F 41 2E 44 41 54 00 00 00 00    ..CNGCOA.DAT....
  162. 0170     20 00 00 00 00 80 0C 9E 0C 9E 0C 3D 92 EE 00 5B     ..........=.n.[
  163.  
  164.      Most of the data seen should not be edited.  But the filename
  165. (which starts at offset 2) can be up to 14 characters.  For
  166. instance, location 102 (above) has the first letter of the
  167. filename, in this case the letter "F".  It is not recommended that
  168. you modify a filename to be greater than 8 characters as DOS will
  169. have problems with it.
  170.      Note that each filename occupies 2 full rows (32 bytes) of
  171. information.  The beginning (offset 0) of the second line is the
  172. file's attribute.  The attribute shown is 20 which is
  173. non-shareable read/write, in other words, the normal DOS attribute
  174. given a file when created.  Each file's attribute starts with 2,
  175. this indicates a file, the remaining codes indicate if the file is
  176. read-only, hidden, system, etc.
  177.  
  178.  
  179. ok, so, that's the intro, jump in and have fun, for you tech types that is...
  180.  
  181. remember, DISKED is NOT for the faint of heart!
  182. <<John>>
  183.  
  184.